package com.gun.management.module.raffle.controller.admin.lotteryrecord.vo;

import com.gun.management.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.gun.management.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 用户抽奖履历分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class LotteryRecordReqVO extends PageParam {

    @Schema(description = "抽奖名称", example = "九宫格活动1")
    private String lotteryName;


    @Schema(description = "抽奖类型id", example = "1")
    private Long lotteryCategoryId;

    @Schema(description = "用户信息", example = "user259(id:20)")
    private String nickName;

    @Schema(description = "奖品名称", example = "耳机V285")
    private String prizeName;

    @Schema(description = "奖品类型id", example = "1")
    private Long prizeCategoryId;

    @Schema(description = "状态(0-未中奖 1-已中奖）", example = "1")
    private Integer status;

    @Schema(description = "抽奖时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] lotteryTime;



}